/** 写成class用于后续判断 **/
export class Vnode {
  constructor(sel,data,children,text,key,elm){
    this.sel = sel;
      this.data = data;
      this.children = children;
      this.text = text;
      this.key = key;
      this.elm = elm;
  }
}

export function vnode(sel,data,children,text,key,elm) {
  return new Vnode(sel,data,children,text,key,elm)
}
